package com.adminx.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 布局控制
 * 
 * @author BloodLee
 *
 */
@Controller
public class LayoutController {

	/**
	 * 左侧菜单
	 */
	@RequestMapping("admin/leftPage")
	public ModelAndView adminLeftPage() {
		ModelAndView view = new ModelAndView();
 		view.setViewName("admin/layout/left");
		return view;
	}
	
	/**
	 * 底栏
	 */
	@RequestMapping("admin/footerPage")
	public ModelAndView adminFooterPage() {
		ModelAndView view = new ModelAndView();
 		view.setViewName("admin/layout/footer");
		return view;
	}
	
	/**
	 * 聊天栏
	 */
	@RequestMapping("admin/connectionPage")
	public ModelAndView connectionPage() {
		ModelAndView view = new ModelAndView();
 		view.setViewName("admin/layout/connection");
		return view;
	}
	
	/**
	 * 头栏
	 */
	@RequestMapping("admin/headerPage")
	public ModelAndView adminHeaderPage() {
		ModelAndView view = new ModelAndView();
 		view.setViewName("admin/layout/header");
		return view;
	}
	
	/**
	 * 页面顶部
	 */
	@RequestMapping("admin/commonHeader")
	public ModelAndView commonHeader() {
		ModelAndView view = new ModelAndView();
 		view.setViewName("admin/link/common-header");
		return view;
	}
	
	/**
	 * 页面底部
	 */
	@RequestMapping("admin/commonFooter")
	public ModelAndView commonFooter() {
		ModelAndView view = new ModelAndView();
 		view.setViewName("admin/link/common-footer");
		return view;
	}
	
}
